﻿@{
    ViewBag.Title = "batchShow";
    Layout = "~/Views/Shared/_Index.cshtml";
}



<script src="~/bootstrap-3.3.5-dist/jquery-2.0.0.min.js"></script>

<link href="~/bootstrap-3.3.5-dist/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet" />

<script src="~/bootstrap-3.3.5-dist/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>

<div id="content-container" class="container">
    <div class="row row-8">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default panel-page">
                <div class="panel-heading">
                    <h2> 通知 </h2>
                </div>

                <ul class="media-list notification-list">
                    @foreach (var item in ViewBag.show as List<LeEdu.MODEL.Message>)
                    {


                        <li class="media">
                            <div class="pull-left">
                                <span class="glyphicon glyphicon-volume-down media-object"></span>
                            </div>
                            <div class="media-body">
                                <div class="notification-body">
                                    系统通知：<a @*id="notificationModal"*@ href="/Group/batchSend/@item.MessageID"  data-toggle="modal" data-target="#Showmess@(item.MessageID)">
                                        @item.MNAME
                                    </a>
                                    <div class="modal fade" id="Showmess@(item.MessageID)" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                            </div><!-- /.modal-content -->
                                        </div>
                                    </div>


                                </div>
                                <div class="notification-footer">
                                    @item.MRELEASETIME
                                </div>
                            </div>

                        </li>

                    }
                

                </ul>

                <ul class="pagination ">
                    <li><a href="/Group/batchShow?PageIndex=1">首页</a></li>
                    <li><a href="/Group/batchShow?PageIndex=@((ViewBag.PageIndex - 1) > 1 ? (ViewBag.PageIndex - 1) :1)"><i class="es-icon es-icon-chevronleft"></i></a></li>

                    @for (int i = 1; i <= ViewBag.PageCount; i++)
                    {
                        <li><a href="/Group/batchShow?PageIndex=@i">@i</a></li>
                    }
                   

                    <li><a href="/Group/batchShow?PageIndex=@((ViewBag.PageIndex + 1) < ViewBag.PageCount ? (ViewBag.PageIndex + 1) : ViewBag.PageCount)"><i class="es-icon es-icon-chevronright"></i></a></li>
                    <li><a href="/Group/batchShow?PageIndex=@ViewBag.PageCount">尾页</a></li>
                </ul>

            </div><!-- /panel -->
        </div>
    </div>
</div>


